function main(){
attr("user",sattr("admin"))
if(sattr("menus")==null){
let sql1="select id,pid,name,url,icon,perms from sys_menu where type <> '数据' and id in ("+
	"select menu_id from sys_role_menu where role_id = "+sattr("admin").role_id+")  ";
if(sattr("admin").role_id==1){
	sql1=`select id,pid,name,url,icon,perms from sys_menu where type <> '数据' `;
}
let ms1=dao.select(sql1)
let menus=Trees.menus(ms1)
sattr("menus",menus)
}
attr("copyrightYear","2020")
}

